<?php
date_default_timezone_set( "PRC" );
$today_start=strtotime(date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d"),date("Y"))));//今天开始时间戳
$today_end=strtotime(date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d"),date("Y"))));//今天结束时间戳
$yesterday_start=strtotime(date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")-1,date("Y"))));//昨天开始时间戳
$yesterday_end=strtotime(date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")-1,date("Y"))));//昨天结束时间戳
$tomorrow_start=strtotime(date("Y-m-d H:i:s",mktime(0,0,0,date("m"),date("d")+1,date("Y"))));//明天开始时间戳
$tomorrow_end=strtotime(date("Y-m-d H:i:s",mktime(23,59,59,date("m"),date("d")+1,date("Y"))));//明天结束时间戳
$lastweek_start=mktime(0,0,0,date('m'),date('d')-date('w')+1-7,date('Y'));//上周开始时间戳
$lastweek_end=mktime(23,59,59,date('m'),date('d')-date('w')+7-7,date('Y'));//上周结束时间戳
$today = date("Y-m-d");    
$first=1;    
$w=date('w',strtotime($today)); 
$week= date('Y-m-d H:i:s',strtotime("$today -".($w ? $w - $first : 6).' days'));
$week_start=strtotime(date('Y-m-d H:i:s',strtotime("$today -".($w ? $w - $first : 6).' days')));//这周开始时间戳  
$week_end=strtotime(date('Y-m-d H:i:s',strtotime("$week +6 days")))+86399;//这周结束时间戳
$month=date('Y-m-01', strtotime(date("Y-m-d")));//当月开始第一天
$month_start=strtotime(date('Y-m-01 H:i:s', strtotime(date("Y-m-d"))));//本月开始时间戳  
$month_end=strtotime(date('Y-m-d H:i:s', strtotime("$month +1 month -1 day")))+86399;//本月结束时间戳
$lastmonth_start=strtotime(date('Y-m-d H:i:s',mktime(0,0,0,date('m')-1,1,date('Y'))));//上月开始时间戳  
$lastmonth_end= strtotime(date('Y-m-d H:i:s',mktime(23,59,59,date('m'),0,date('Y'))));//上月结束时间戳	
$prelastmonth_start=strtotime(date('Y-m-d H:i:s',mktime(0,0,0,date('m')-2,1,date('Y'))));//上上月开始第一天
$prelastmonth_end= strtotime(date('Y-m-d H:i:s',strtotime(date('Y-m-d',mktime(0,0,0,date('m')-1,1,date('Y'))))-1));//上上月最后一天

return array(
	//'配置项'=>'配置值'
	'DB_TYPE'=>'mysql',
	'DB_HOST'=>'localhost',
	'DB_NAME'=>'lsyhzd3',
	'DB_USER'=>'root',//lsyhzd3
	'DB_PWD'=>'',//f3x2s5z3
	'DB_PREFIX'=>'bk_',
	'DB_PROT'=>3306,
	'DB_CHARSET'=> 'utf8',
	'DB_DEBUG'  =>  TRUE,
	'SHOW_PAGE_TRACE' =>false,
	'MODULE_ALLOW_LIST'=>array('Home','Admin'),
	'DEFAULT_MODULE'=>'Home',
	
	'YESTERDAY_START'=>$yesterday_start,
	'YESTERDAY_END'=>$yesterday_end,
	
	
	'TODAY_START'=>$today_start,
	'TODAY_END'=>$today_end,
	
	'TOMORROW_START'=>$tomorrow_start,
	'TOMORROW_END'=>$tomorrow_end,
	
	'LASTWEEK_START'=>$lastweek_start,
	'LASTWEEK_END'=>$lastweek_end,
	
	
	'WEEK_START'=>$week_start,
	'WEEK_END'=>$week_end,
	
	'MONTH_START'=>$month_start,
	'MONTH_END'=>$month_end,
	
	'LASTMONTH_START'=>$lastmonth_start,
	'LASTMONTH_END'=>$lastmonth_end,
	
	'PRELASTMONTH_START'=>$prelastmonth_start,
	'PRELASTMONTH_END'=>$prelastmonth_end,
	
	'DAYLIST'=>array('yesterday','today','tomorrow','month','lastmonth'),
	'DAYACT'=>array('add','yuyue','yudao','yidao','weidao','daizhen'),
	
	'PAGENUM'=>20,
	'ROLLPAGE'=>3,
	'TIPSONUM'=>12,
	'PAGESIZE'=>20,
	
	//***********************************session过期时间设置**********************************
	'SESSION_OPTIONS'        => array(
	'name'               =>'SZNADMIN',//设置session名
	'expire'             =>6*24*3600, //SESSION保存秒数
	'use_trans_sid'      => 1,//跨页传递
	'use_only_cookies'   => 0,//是否只开启基于cookies的session的会话方式
    ),
	
//***********************************auth设置**********************************	
	    'AUTH_CONFIG'            => array(
		'AUTH_GROUP'        => 'group', // 用户组数据表名
        'AUTH_GROUP_ACCESS' => 'groupaccess', // 用户-用户组关系表
        'AUTH_RULE'         => 'rule', // 权限规则表
        'AUTH_USER'         => 'user', // 用户信息表
        ),
		
		
	
);